import { Session } from '/@/utils/storage';

export const tableOption = {
    border: true,
    index: false,
    stripe: true,
    searchMenuSpan: 4,
    searchSpan: 4,
    menuWidth: 80,
    delBtn: false,
    editBtn: false,
    addBtn: false,
    menu:false,
    columnBtn:false,
    searchShowBtn:false,
    column: [
      {
        label: '区域代码',
        prop: 'regionCode',
        search:true,
        searchOrder:2
      },
      {
        label: '区域名称',
        prop: 'name',
        search:true,
        searchOrder:1
      },
      {
        type:'select',
        label: '区域级别',
        prop: 'grade',
        search:true,
        searchOrder:3,
        dicUrl: "app/admin/dict/type/region_grade",
        dicHeaders:{
            'Authorization':`Bearer ${Session.getToken()}`
        }
      },
      {
        label: '父级区域',
        prop: 'parentName',
      },
      {
        label: '区域全称',
        prop: 'fullName',
        width:300
      },
      {
        label: '面积(㎡)',
        prop: 'area',
      },
    ]
  }
  